package com.eden.door.io;

import java.io.File;
import java.io.FilenameFilter;

public class XmlFileFilter implements FilenameFilter {
	private String suffix  = null;
	
	public XmlFileFilter(){} 
	public XmlFileFilter(String suffix){
		this.suffix = suffix ;
	}
	public boolean accept(File dir, String name) {
		return name.trim().substring(name.lastIndexOf('.')+1).equalsIgnoreCase(this.suffix) ;
	}

}
